package com.rong.shop.service;

import com.rong.shop.pojo.Address;
import com.rong.shop.pojo.AddressDistrict;

import java.util.List;

public interface IAddressDistrictService {

    /**
     * 根据父节点查询所有地址
     * @param parent 前端传来的parent父节点id
     */
    public List<AddressDistrict> findByParent(String parent);

    /**
     * 根据 地区code 查找地区name
     * @param code
     * @return
     */
    public String findNameByCode(String code);

}
